// 该文件专门用于创建整个应用的路由器
import VueRouter from 'vue-router'
//引入组件
import Evaluate from '../Evaluate'
import Test from '../Test'
import AddAddress from '../AddAddress'
import OrderHead from '../OrderHead'
import Payment from '../Payment'
import PayOnline from '../PayOnline'
import SelectPopup from '../SelectPopup'
import ShopDetails from '../ShopDetails'

//创建并暴露一个路由器
export default new VueRouter({
    routes: [{
        path: '/test',
        component: Test,
        children: [{
                name: 'evaluate',
                path: '/evaluate',
                component: Evaluate
            },
            {
                name: 'addAddress',
                path: '/addAddress',
                component: AddAddress
            },
            {
                name: 'orderHead',
                path: '/orderHead',
                component: OrderHead
            },
            {
                name: 'payment',
                path: '/payment',
                component: Payment
            },
            {
                name: 'payOnline',
                path: '/payOnline',
                component: PayOnline
            },
            {
                name: 'selectPopup',
                path: '/selectPopup',
                component: SelectPopup
            },
            {
                name: 'shopDetails',
                path: '/shopDetails',
                component: ShopDetails
            },
        ]
    }]
})